package cn.dsp.admin.entity.admin;

import cn.dsp.admin.entity.BaseEntity;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.ToString;

import java.util.HashSet;
import java.util.Set;


@Data
@EqualsAndHashCode(callSuper = false)
public class Admin extends BaseEntity {

  private Integer adminId;
  private String adminName;
  private String password;
  private String salt;
  private Integer gender;
  private String phone;
  private String avatar;
  private Integer isDelete;
  private Integer state;
  private Integer lotId;
  private Integer storeId;
  private Set<Role> roles = new HashSet<>();

  @Override
  public String toString() {
    return "Admin{" +
            "adminId=" + adminId +
            ", adminName='" + adminName + '\'' +
            ", password='" + password + '\'' +
            ", salt='" + salt + '\'' +
            ", gender=" + gender +
            ", phone='" + phone + '\'' +
            ", avatar='" + avatar + '\'' +
            ", isDelete=" + isDelete +
            ", state=" + state +
            ", lotId=" + lotId +
            ", storeId=" + storeId +
            ", roles=" + roles +
            "} ";
  }
}
